

<%@ page import="mms.FoodRetail" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'foodRetail.label', default: 'FoodRetail')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
        <g:javascript src="foodRetail/create.js" />
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${foodRetailInstance}">
            <div class="errors">
                <g:renderErrors bean="${foodRetailInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name"><g:message code="foodRetail.name.label" default="Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'name', 'errors')}">
                                    <g:textField name="name" value="${foodRetailInstance?.name}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="specifications"><g:message code="foodRetail.specifications.label" default="Specifications" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'specifications', 'errors')}">
                                    <g:textField name="specifications" value="${foodRetailInstance?.specifications}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="amount"><g:message code="foodRetail.amount.label" default="Amount" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'amount', 'errors')}">
                                    <g:textField name="amount" value="${fieldValue(bean: foodRetailInstance, field: 'amount')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="purchasetime"><g:message code="foodRetail.purchasetime.label" default="Purchasetime" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'purchasetime', 'errors')}">
                                    <g:textField name="purchasetime" value="${foodRetailInstance?.purchasetime}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="pushintime"><g:message code="foodRetail.pushintime.label" default="Pushintime" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'pushintime', 'errors')}">
                                    <g:textField name="pushintime" value="${foodRetailInstance?.pushintime}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="supplier"><g:message code="foodRetail.supplier.label" default="Supplier" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'supplier', 'errors')}">
                                    <g:textField name="supplier" value="${foodRetailInstance?.supplier}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="contactsupplier"><g:message code="foodRetail.contactsupplier.label" default="Contactsupplier" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'contactsupplier', 'errors')}">
                                    <g:textField name="contactsupplier" value="${foodRetailInstance?.contactsupplier}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="consistent"><g:message code="foodRetail.consistent.label" default="Consistent" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'consistent', 'errors')}">
                                    <g:textField name="consistent" value="${foodRetailInstance?.consistent}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="acceptpeople"><g:message code="foodRetail.acceptpeople.label" default="Acceptpeople" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'acceptpeople', 'errors')}">
                                    <g:textField name="acceptpeople" value="${foodRetailInstance?.acceptpeople}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="enterprise"><g:message code="foodRetail.enterprise.label" default="Enterprise" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: foodRetailInstance, field: 'enterprise', 'errors')}">
                                    <g:select name="enterprise.id" from="${mms.RestaurantCompany.list()}" optionKey="id" value="${foodRetailInstance?.enterprise?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
